<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>小新旅游 | 登录</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- Font Awesome  src\main\webapp\resources\plugins\fontawesome-free\css\all.min.css-->
    <link rel="stylesheet" href="./resources/plugins/fontawesome-free/css/all.min.css">
    <!-- Ionicons -->
    <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
    <!-- icheck bootstrap -->
    <link rel="stylesheet" href="./resources/plugins/icheck-bootstrap/icheck-bootstrap.min.css">
    <!-- Theme style -->
    <link rel="stylesheet" href="./resources/dist/css/adminlte.min.css">
    <!-- Google Font: Source Sans Pro -->
    <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
    <script>
        function changeImg() {
            document.getElementById("capImg").src = document.getElementById("capImg").src+"?"+Math.random();
            //由于浏览器缓存，src一样的话，浏览器不刷新，所以在图片后面添加 随机数，即可解决刷新问题
        }

    </script>
</head>
<body class="hold-transition login-page" style="background-image: url('./img/back/loginbackimg.jpg');background-size: 100%;">
<div class="login-box">
    <div class="login-logo">
        <a href="index.jsp"><b>闽院</b>小新旅游</a>
    </div>
    <!-- /.login-logo -->
    <div class="card">
        <div class="card-body login-card-body">
            <p class="login-box-msg">登录</p>

            <form action="./login" method="post">
                <div class="input-group mb-3">
                    <input type="text" class="form-control" id="userName" name="userName" placeholder="登录名称">
                    <div class="input-group-append">
                        <div class="input-group-text">
                            <span class="fas fa-user"></span>
                        </div>
                    </div>
                </div>
                <div class="input-group mb-3">
                    <input type="password" class="form-control" id="passWord" name="passWord" placeholder="登录密码">
                    <div class="input-group-append">
                        <div class="input-group-text">
                            <span class="fas fa-lock"></span>
                        </div>
                    </div>
                </div>

                <div class="input-group mb-3">
                    <input type="text" class="form-control" id="inputCapche" name="inputCapche" placeholder="验证码">
                    <img src="./captche" id="capImg" name="capImg" onclick="changeImg()">

                </div>

                <div class="row" style="">

                    <!-- /.col -->
                    <div class="col-12" >
                        <button type="submit" class="btn btn-primary btn-block" >登录</button>
                    </div>
                    <!-- /.col -->
                </div>
            </form>


            <!-- /.social-auth-links -->

            <p class="mb-1">

                <a href="./forget">忘记密码</a>

                <a href="./register" class="text-center" style="float: right;">立即注册</a>
            </p>
        </div>
        <!-- /.login-card-body -->
    </div>
</div>
<!-- /.login-box -->

<!-- jQuery -->
<script src="./resources/plugins/jquery/jquery.min.js"></script>
<!-- Bootstrap 4 -->
<script src="./resources/plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- AdminLTE App -->
<script src="./resources/dist/js/adminlte.min.js"></script>

</body>
</html>
